package com.znjc.device.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.znjc.common.annotation.DataSource;
import com.znjc.common.enums.DataSourceType;
import com.znjc.device.domain.DevicePoint;

import java.util.List;

/**
 * 【请填写功能名称】Service接口
 *
 * @author zengpc
 * @date 2023-12-04
 */
public interface IDevicePointService extends IService<DevicePoint> {
    /**
     * 根据id获取名称
     * @param id
     * @return
     */
    String getPointName(Long id);

    /**
     * 根据设备id和测点名称获取测点id
     * @param deviceId
     * @param pointName
     * @return
     */
    Long getPointId(Long deviceId,String pointName);

    /**
     * 根据设备类型id查询集合
     * @param typeId
     * @return
     */
    List<DevicePoint> getListByTypeId(Long typeId);
}
